package com.baizhi.innerclassx;

public class Test02 {
    public static void main(String[] args) {
        //创建一台电脑
        Computer computer = new Computer();

        //创建一个鼠标
        Mouse mouse = new Mouse("联想");

        //把鼠标插入到电脑USB接口
        computer.setUsb(mouse);

        //电脑开机
        computer.on();
    }
}
